package com.jar.exercise.设计模式.模版模式;

public abstract class Game {
    protected abstract String before();

    protected abstract String process();

    protected abstract String after();

    /**
     * 定义模版方法
     */
    public final void play() {
        System.out.println(before());
        System.out.println(process());
        System.out.println(after());
    }
}
